<?php
/**
 * ProductFixture
 *
 */
class ProductFixture extends CakeTestFixture {

/**
 * Fields
 *
 * @var array
 */
	public $fields = array(
		'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'primary'),
		'product_code' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 50, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
		'product_name' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 256, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
		'product_maker' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 256, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
		'image' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 256, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
		'number' => array('type' => 'integer', 'null' => true, 'default' => null),
		'type_product_id' => array('type' => 'integer', 'null' => true, 'default' => null),
		'type' => array('type' => 'integer', 'null' => true, 'default' => '0', 'length' => 4, 'comment' => '0: nomal, 1: new, 2: hot'),
		'price' => array('type' => 'integer', 'null' => true, 'default' => null),
		'price_sale_off' => array('type' => 'integer', 'null' => true, 'default' => null),
		'size' => array('type' => 'integer', 'null' => true, 'default' => null),
		'create_date' => array('type' => 'datetime', 'null' => true, 'default' => null),
		'create_person' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 100, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
		'indexes' => array(
			'PRIMARY' => array('column' => 'id', 'unique' => 1)
		),
		'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_general_ci', 'engine' => 'MyISAM')
	);

/**
 * Records
 *
 * @var array
 */
	public $records = array(
		array(
			'id' => 1,
			'product_code' => 'Lorem ipsum dolor sit amet',
			'product_name' => 'Lorem ipsum dolor sit amet',
			'product_maker' => 'Lorem ipsum dolor sit amet',
			'image' => 'Lorem ipsum dolor sit amet',
			'number' => 1,
			'type_product_id' => 1,
			'type' => 1,
			'price' => 1,
			'price_sale_off' => 1,
			'size' => 1,
			'create_date' => '2014-03-31 15:57:35',
			'create_person' => 'Lorem ipsum dolor sit amet'
		),
	);

}
